package com.stm.bi.dto.vo;

import com.stm.framework.annotation.ResParam;

import java.util.List;

/**
 * @Description:
 * @Author: bo
 * @Date: 2023/06/26 17:32
 */
public class ReportTitleVO {

    @ResParam(label = "标题名")
    private String name;

    @ResParam(label = "标题编码")
    private String code;

    @ResParam(label = "子标题")
    private List<ReportTitleVO> children;

    public static ReportTitleVO of(String code, String name){
        return new ReportTitleVO().setCode(code).setName(name);
    }

    public String getName() {
        return name;
    }

    public ReportTitleVO setName(String name) {
        this.name = name;
        return this;
    }

    public String getCode() {
        return code;
    }

    public ReportTitleVO setCode(String code) {
        this.code = code;
        return this;
    }

    public List<ReportTitleVO> getChildren() {
        return children;
    }

    public ReportTitleVO setChildren(List<ReportTitleVO> children) {
        this.children = children;
        return this;
    }
}
